const { defineConfig } = require('@vue/cli-service')
const webpack = require("webpack")

module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  configureWebpack: {
    devtool: "source-map",
    name: "test"
  },
  devServer: {
    proxy:{
      '/apiJump': {
        target: "http://localhost:8081/",
        changeOrigin: true,
        pathRewrite: {
          "^/apiJump": ""
        }
      }
    }
  },
  // 配置插件参数
  configureWebpack: {
    plugins: [
        // 配置 jQuery 插件的参数
        new webpack.ProvidePlugin({
            $: 'jquery',
            jQuery: 'jquery',
            'window.jQuery': 'jquery',
            Popper: ['popper.js', 'default']
        })
    ]
  }
})

